import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询入库管理列表
export function listStoragereceipt(query) {
  return request({
    url: '/assets/storagereceipt/list',
    method: 'get',
    params: query
  })
}

// 查询入库管理详细
export function getStoragereceipt(storageReceiptid) {
  return request({
    url: '/assets/storagereceipt/' + parseStrEmpty(storageReceiptid),
    method: 'get'
  })
}

// 新增入库管理
export function addStoragereceipt(data) {
  return request({
    url: '/assets/storagereceipt',
    method: 'post',
    data: data
  })
}

// 修改入库管理
export function updateStoragereceipt(data) {
  return request({
    url: '/assets/storagereceipt',
    method: 'put',
    data: data
  })
}

// 删除入库管理
export function delStoragereceipt(storageReceiptid) {
  return request({
    url: '/assets/storagereceipt/' + storageReceiptid,
    method: 'delete'
  })
}

// 获取仓库列表
export function getWarehouselist(userId) {
  return request({
    url: '/assets/storagereceipt/warehouseList' ,
    method: 'get'
  })
}
